//
//  LELongSQLGenerator.h
//  CreditAddressBook
//
//  Created by Lee on 15/10/15.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString *const recordID;//数据id,必须包含该字段

@interface LELongSQLGenerator : NSObject

/**
 *  插入
 *
 *  @param attributes 数据字典
 *  @param completion
 */
+ (void)generateSQLForInserting:(NSDictionary *)attributes tableName:(NSString *)tableName completion:(void (^) (NSString *sql, NSArray *arguments))completion;

/**
 *  根据ID更新数据
 *
 *  @param attributes 数据字典
 *  @param completion
 */
+ (void)generateSQLForUpdating:(NSDictionary *)attributes tableName:(NSString *)tableName completion:(void (^)(NSString *sql, NSArray *arguments))completion;
@end
